package com.woniuxy.threeprojcet.end_water_project_admin.dao;

import com.woniuxy.threeprojcet.end_water_project_admin.domain.MeterReading;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

/**
 * <p>
 * 水量表 Mapper 接口
 * </p>
 *
 * @author Lucas
 * @since 2021-08-26
 */
public interface MeterReadingMapper extends BaseMapper<MeterReading> {

    @Select("select MAX(meter_reading_time)  from wn_meterreading  where water_meter_id =#{waterMeterId}")
    Date getLastMeterTimeByWaterMeterId(String waterMeterId);
}
